package protobuf {
	import com.netease.protobuf.*;
	use namespace com.netease.protobuf.used_by_generated_code;
	import com.netease.protobuf.fieldDescriptors.*;
	import flash.utils.Endian;
	import flash.utils.IDataInput;
	import flash.utils.IDataOutput;
	import flash.utils.IExternalizable;
	import flash.errors.IOError;
	// @@protoc_insertion_point(imports)

	// @@protoc_insertion_point(class_metadata)
	public dynamic final class TNMT_PLAYER_INFO extends com.netease.protobuf.Message {
		/**
		 *  @private
		 */
		public static const PLAYERNAME:FieldDescriptor$TYPE_STRING = new FieldDescriptor$TYPE_STRING("protobuf.TNMT_PLAYER_INFO.playername", "playername", (1 << 3) | com.netease.protobuf.WireType.LENGTH_DELIMITED);

		public var playername:String;

		/**
		 *  @private
		 */
		public static const TABLEID:FieldDescriptor$TYPE_UINT64 = new FieldDescriptor$TYPE_UINT64("protobuf.TNMT_PLAYER_INFO.tableid", "tableid", (2 << 3) | com.netease.protobuf.WireType.VARINT);

		public var tableid:UInt64;

		/**
		 *  @private
		 */
		public static const JET:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.TNMT_PLAYER_INFO.jet", "jet", (3 << 3) | com.netease.protobuf.WireType.VARINT);

		public var jet:uint;

		/**
		 *  @private
		 */
		public static const RANK:FieldDescriptor$TYPE_UINT32 = new FieldDescriptor$TYPE_UINT32("protobuf.TNMT_PLAYER_INFO.rank", "rank", (4 << 3) | com.netease.protobuf.WireType.VARINT);

		public var rank:uint;

		/**
		 *  @private
		 */
		override used_by_generated_code final function writeToBuffer(output:com.netease.protobuf.WritingBuffer):void {
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.LENGTH_DELIMITED, 1);
			com.netease.protobuf.WriteUtils.write$TYPE_STRING(output, this.playername);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 2);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT64(output, this.tableid);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 3);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.jet);
			com.netease.protobuf.WriteUtils.writeTag(output, com.netease.protobuf.WireType.VARINT, 4);
			com.netease.protobuf.WriteUtils.write$TYPE_UINT32(output, this.rank);
			for (var fieldKey:* in this) {
				super.writeUnknown(output, fieldKey);
			}
		}

		/**
		 *  @private
		 */
		override used_by_generated_code final function readFromSlice(input:flash.utils.IDataInput, bytesAfterSlice:uint):void {
			var playername$count:uint = 0;
			var tableid$count:uint = 0;
			var jet$count:uint = 0;
			var rank$count:uint = 0;
			while (input.bytesAvailable > bytesAfterSlice) {
				var tag:uint = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
				switch (tag >> 3) {
				case 1:
					if (playername$count != 0) {
						throw new flash.errors.IOError('Bad data format: TNMT_PLAYER_INFO.playername cannot be set twice.');
					}
					++playername$count;
					this.playername = com.netease.protobuf.ReadUtils.read$TYPE_STRING(input);
					break;
				case 2:
					if (tableid$count != 0) {
						throw new flash.errors.IOError('Bad data format: TNMT_PLAYER_INFO.tableid cannot be set twice.');
					}
					++tableid$count;
					this.tableid = com.netease.protobuf.ReadUtils.read$TYPE_UINT64(input);
					break;
				case 3:
					if (jet$count != 0) {
						throw new flash.errors.IOError('Bad data format: TNMT_PLAYER_INFO.jet cannot be set twice.');
					}
					++jet$count;
					this.jet = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				case 4:
					if (rank$count != 0) {
						throw new flash.errors.IOError('Bad data format: TNMT_PLAYER_INFO.rank cannot be set twice.');
					}
					++rank$count;
					this.rank = com.netease.protobuf.ReadUtils.read$TYPE_UINT32(input);
					break;
				default:
					super.readUnknown(input, tag);
					break;
				}
			}
		}

	}
}
